package com.lin.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;

import java.util.Date;

@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(20)
// 头字体设置成20
@HeadFontStyle(fontHeightInPoints = 10)

// 导出内容水平居中 和 垂直居中
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,verticalAlignment = VerticalAlignmentEnum.CENTER)
public class Person {
    @ExcelProperty(value = "id")
    private Long id;

    @ExcelProperty(value = "身份证号")
    private String cardNum;

    @ExcelProperty(value = "年龄")
    private Integer perAge;

    @ExcelProperty(value = "生日")
    private Date perBirth;

    @ExcelProperty(value = "double数据")
    private Double doubleData;

    @ExcelProperty(value = "我的手机号码")
    private Long phoneNum;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public Integer getPerAge() {
        return perAge;
    }

    public void setPerAge(Integer perAge) {
        this.perAge = perAge;
    }

    public Date getPerBirth() {
        return perBirth;
    }

    public void setPerBirth(Date perBirth) {
        this.perBirth = perBirth;
    }

    public Double getDoubleData() {
        return doubleData;
    }

    public void setDoubleData(Double doubleData) {
        this.doubleData = doubleData;
    }

    public Long getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(Long phoneNum) {
        this.phoneNum = phoneNum;
    }
}
